import request from '@/utils/request'
// import store from '@/store'
// 用户信息获取
export const sysProfilePost = () => {
  return request({
    url: '/sys/profile',
    method: 'post'
    // headers: {
    //   Authorization: `Bearer ${store.state.user.token}`
    // }
  })
}
// 获取完整 用户信息
export const sysUser = (id) => {
  return request({
    url: '/sys/user/' + id
  })
}
// 更新用户信息
export const sysUserPut = (data) => {
  return request({
    url: '/sys/user/' + data.id,
    method: 'put',
    data
  })
}

export const sysUserAll = () => {
  return request({
    url: '/sys/user',
    noToken: true
  })
}
